

char **sortPeople(char **names, int namesSize, int *heights, int heightsSize, int *returnSize)
{
    int i, j;
    char *name;
    int height;
    for (i = 0; i < namesSize - 1; i++)
    {
        for (j = 0; j < namesSize - 1 - i; j++)
        {
            if (heights[j] < heights[j + 1])
            {
                height = heights[j];
                heights[j] = heights[j + 1];
                heights[j + 1] = height;
                name = names[j];
                names[j] = names[j + 1];
                names[j + 1] = name;
            }
        }
    }
    *returnSize = namesSize;
    return names;
}